<template>
<div>
<h1>分类列表</h1>
</div>
</template>

<script>
// import axios from 'axios'
// import axios from '../../http/index'
import {axios_get} from '../../http/index'
import {getCateList} from "../../http/api";

export default {
  name: "CateList",
  data(){
    return{}
  },
  methods:{},
  created() {
    //获取分类列表
    // axios({
    //   url:'cate3/',
    //   method:'GET',
    // }).then(resp=>{
    //   console.log(resp.data)
    // }).catch(err=>{
    //   console.log(err)
    // })

    // axios_get('cate3/')
    getCateList()
      .then(resp=>{
      console.log(resp.data)
    }).catch(error=>{
      console.log(error)
    })

  }

}
</script>

<style scoped>

</style>
